<template>
	<view>
		<view>{{mapInfo.city.text}}:{{mapInfo.city.data}}</view>
		<view>{{mapInfo.temperature.text}}:{{mapInfo.temperature.data}}℃</view>
		<view>{{mapInfo.humidity.text}}:{{mapInfo.humidity.data}}</view>
		<view>{{mapInfo.weather.text}}:{{mapInfo.weather.data}}</view>
		<view>{{mapInfo.winddirection.text}}:{{mapInfo.winddirection.data}}</view>
		<view>{{mapInfo.windpower.text}}:{{mapInfo.windpower.data}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mapInfo: null
			}
		},
		methods: {
			
		},
		onLoad: function (option) { //option为object类型，会序列化上个页面传递的参数
			this.mapInfo = JSON.parse(option.mapInfo || "{}")
		}
	}
</script>

<style>

</style>
